/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Game.bc;

import javax.ejb.Stateless;
import javax.ejb.LocalBean;
import javax.ejb.Schedule;

/**
 *
 * @author Steven
 */
@Stateless
@LocalBean
public class TimerBean {

    private int seconds = 0;

    @Schedule(second = "*", minute = "*", hour ="*")
    public void updateSeconds() {
        ++seconds;
    }

    public int getSeconds() {
        return seconds;
    }

    public void resetSeconds() {
        seconds = 0;
    }







    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
 
}
